/*package br.com.stefanini.schs.ejb.entity;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;

@Entity
@NamedQueries({
	@NamedQuery(name = "Gerente.consultaGerentePorEmail",query = "select g from Gerente g where g.email = :email")
})
public class Gerente extends Funcionario implements Serializable {

	private static final long serialVersionUID = 3932066460316879508L;

	@Id
	@GeneratedValue
	@Column(name = "id")
	private long id;

	@Enumerated(EnumType.STRING)
	private Perfil perfil;

	@OneToOne(targetEntity = Departamento.class, fetch = FetchType.EAGER, cascade = CascadeType.ALL)
	private Departamento departamento;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Departamento getDepartamento() {
		return departamento;
	}

	public void setDepartamento(Departamento departamento) {
		this.departamento = departamento;
	}

	public Perfil getPerfil() {
		return perfil;
	}

	public void setPerfil(Perfil perfil) {
		this.perfil = perfil;
	}

}
*/